]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
iconGrid: Rename childrenInRow to columnsForWidth
authorCarlos Soriano <carlos.soriano89@gmail.com>
Thu, 22 Aug 2013 21:27:05 +0000 (23:27 +0200)
committerCarlos Soriano <carlos.soriano89@gmail.com>
Mon, 2 Sep 2013 16:57:36 +0000 (18:57 +0200)
Since the parameter of the function is the width, reflect that in
the function name. Also, since we are counting columns, not only
children for each row, reflect that in the function name also.

https://bugzilla.gnome.org/show_bug.cgi?id=706081

js/ui/iconGrid.js
js/ui/searchDisplay.js

index a5c16f09842144c637e914fd6dcb9d8343162127..d408b1be7363359a148c235b03a800746e189ccf 100644 (file)
@@ -330,7 +330,7 @@ const IconGrid = new Lang.Class({
         return childBox;
     },
 
-    childrenInRow: function(rowWidth) {
+    columnsForWidth: function(rowWidth) {
         return this._computeLayout(rowWidth)[0];
     },
 
index 2177874f6f761c7ef01d25a60688ed95325cca78..9d47e44ec9ce189142a84b9b5f58fdb1797bd130 100644 (file)
@@ -320,7 +320,7 @@ const GridSearchResults = new Lang.Class({
     },
 
     _getMaxDisplayedResults: function() {
-        return this._grid.childrenInRow(this._bin.width) * this._grid.getRowLimit();
+        return this._grid.columnsForWidth(this._bin.width) * this._grid.getRowLimit();
     },
 
     _renderResults: function(metas) {